<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link type="text/css" rel="stylesheet" href="../css/layui.css" />
		<script type="text/javascript" src="../layui.js"></script>
	</head>
	<body>
		<div id="test1"></div>
		<script>
		layui.use(['transfer'],function(){
			var transfer=layui.transfer;
			//渲染
			 transfer.render({       
				 elem: "#test1",//绑定元素
				 title:['1902','1901'],
				 value:["1","2"],
			     data:[         
					{"value": "1", "title": "李白", "disabled": "", "checked": "true"},         
					{"value": "2", "title": "杜甫", "disabled": "", "checked": "true"},        
					{"value": "3", "title": "贤心", "disabled": "", "checked": ""}
					],       
					id: "testTransfer2" //定义索引     
				});
			});
		</script>
	</body>
</html>
